import React from 'react';
import ReactDOM from 'react-dom';
import { Router } from 'react-router-dom';
import 'antd/dist/antd.min.css';
import App from './App';
import { ConfigProvider } from 'antd';

import 'moment/locale/zh-cn';
// 国际化插件  用于设置日期为中文
import locale from 'antd/lib/locale/zh_CN';
import history from 'utils/history';
ReactDOM.render(
	<Router history={history}>
		<ConfigProvider locale={locale}>
			<App />
		</ConfigProvider>
	</Router>,
	document.getElementById('root')
);
